package com.jymj.entity;

import com.jymj.utils.FileUtile.FileUtile;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Created by ${lc} on 2021/10/25.
 */
@Data
@Accessors(chain = true)
public class ComplaintsFile {
    private final String APPLE_SAVE = "ComplaintFile.dirPath";

    private Integer id;
    //complaints主键
    private Integer msid;
    //'资料名称'
    private String name;
    //'文件地址'
    private String  url;
    //'上传时间
    private Date entime;

    private Integer filetype;

    private Long enpsn;

    private Integer type;
    //备注
    private String remark;


    private String path;

    public String getUrl() {
        return new FileUtile().initFileUtile(APPLE_SAVE).getUrlHead()+getPath();
    }
}
